package com.kckj.comm.util;



import com.util.PasswordUtil;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

public class PasswordUtils {

    public static String md5With(String password, String loginName) throws UnsupportedEncodingException, NoSuchAlgorithmException {
        String md5WithSalt = PasswordUtil.getMD5WithSalt(password, loginName);
        return md5WithSalt;//生成新密码的MD5
    }
}
